// utils/emitter.ts
import mitt from 'mitt'


type Events = {
    'currentMenu':  {
        title:string,
        icon:string,
    },
    'currentSubMenu':  {
        title:string,
        icon:string,
    }
    // 添加更多事件类型
}

export const emitter = mitt<Events>()